package com.aloha.springframework.beans.factory.config;

import com.aloha.springframework.beans.BeansException;

/**
 * @author DaiZhiHeng
 * @date 2023/8/1 21:59
 */
public interface SmartInstantiationAwareBeanPostProcessor extends InstantiationAwareBeanPostProcessor {
    /**
     * 提前暴露bean
     */
    default Object getEarlyBeanReference(Object bean, String beanName) throws BeansException {
        return bean;
    }
}
